package com.leoman.customer.entity;

import com.leoman.entity.BaseEntity;
import com.leoman.image.entity.Image;
import com.leoman.permissions.admin.entity.Admin;

import javax.persistence.*;
import java.util.List;

/**
 * 客户
 * Created by Daisy on 2016/12/27.
 */
@Entity
@Table(name = "t_customer")
public class Customer extends BaseEntity{

    @Column(name = "name")
    private String name;//姓名

    @Column(name = "mobile")
    private String mobile;//手机号

    @Column(name = "qq")
    private String qq;//qq

    @Column(name = "wechat")
    private String wechat;//微信

    @Column(name = "email")
    private String email;//邮箱

    @Column(name = "region")
    private String region;//地域

    @Column(name = "source")
    private String source;//来源

    @Column(name = "industry_info")
    private String industryInfo;//行业信息

    @Column(name = "admin_id")
    private Long adminId;//指派管理员

    @Column(name = "demand_no")
    private String demandNo;//需求号

    @Column(name = "status")
    private Integer status;//状态：0-新增，1-删除

    @Transient
    private Admin admin;

    @Transient
    private CustomerDemand demand;

    public Long getAdminId() {
        return adminId;
    }

    public void setAdminId(Long adminId) {
        this.adminId = adminId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getWechat() {
        return wechat;
    }

    public void setWechat(String wechat) {
        this.wechat = wechat;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getIndustryInfo() {
        return industryInfo;
    }

    public void setIndustryInfo(String industryInfo) {
        this.industryInfo = industryInfo;
    }

    public Admin getAdmin() {
        return admin;
    }

    public void setAdmin(Admin admin) {
        this.admin = admin;
    }

    public CustomerDemand getDemand() {
        return demand;
    }

    public void setDemand(CustomerDemand demand) {
        this.demand = demand;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getDemandNo() {
        return demandNo;
    }

    public void setDemandNo(String demandNo) {
        this.demandNo = demandNo;
    }
}
